package models

import (
	"time"
	"github.com/astaxie/beego/orm"
)

type SQLLogs struct {
	Id        int64
	Mark      int
	UserId    int
	UserName  string
	ArticleId int
	Body      string `orm:"type(text)"`
	LogTime   time.Time
	LogType   int //1:mark 2:mark_article 3:article_publish 4:article_deny 5:article_shenghe 6:article_status_change  7:login 8:LogType_ArticleUpdate	9:LogType_ArticleAdd 10:LogType_ArticleDelete
	Status    int  `orm:"default(0)"`
}

func init() {
	orm.RegisterModel(new(SQLLogs))
}
func (*SQLLogs)TableName() string {
	return "sqllogs"
}
